package com.ant.storage.dto;

import com.ant.storage.common.PageRequest;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author hzd
 * @version 1.0
 * @date 2022/5/16 11:51
 */
@Data
public class PurchaserRecordDto  extends PageRequest {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "采购单subscribeId")
    private Integer subscribeId;

    @ApiModelProperty(value = "结算单号")
    private String recordNumber;

    @ApiModelProperty(value = "城市id")
    @TableField("city_id")
    private Integer cityId;

    @ApiModelProperty(value = "采购单id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "供应商id")
    private Integer supplierId;

    @ApiModelProperty(value = "采购人")
    @TableField("purchaser_id")
    private Integer purchaserId;

    @ApiModelProperty(value = "销账金额")
    @TableField("red_amount")
    private BigDecimal redAmount;

    @ApiModelProperty(value = "报销金额")
    @TableField("reimbursement_amount")
    private BigDecimal reimbursementAmount;

    @ApiModelProperty(value = "退款金额")
    @TableField("refund_amount")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "申请金额")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "实际采购金额")
    private BigDecimal consumePrice;

    @ApiModelProperty(value = "类型")
    private Integer types;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "图片")
    private String imageUrl;

    @ApiModelProperty(value = "图片id")
    private String imgUrlId;

    @ApiModelProperty(value = "状态")
    private String statues;

    @ApiModelProperty(value = "处理人")
    private String handler;

    @ApiModelProperty(value = "处理时间")
    @TableField("handler_time")
    private Date handlerTime;

    @TableField("creation_time")
    private Date creationTime;

    @ApiModelProperty(value = "采购单id集合")
    private List<Integer> ids;

    @ApiModelProperty(value = "审核人")
    @TableField(exist = false)
    private List<String> approval;

    @ApiModelProperty(value = "抄送人")
    @TableField(exist = false)
    private List<String> notify;

    @ApiModelProperty(value = "钉钉申请人Id")
    @TableField(exist = false)
    private String userId;

    @ApiModelProperty(value = "钉钉申请部门Id")
    @TableField(exist = false)
    private Integer deptId;

    @ApiModelProperty(value = "紧急情况")
    @TableField(exist = false)
    private String urgency;

    @ApiModelProperty(value = "日期")
    @TableField(exist = false)
    private String date;

    @ApiModelProperty(value = "查询日期")
    @TableField(exist = false)
    private List<String> times;

    @ApiModelProperty(value = "申请人")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "是否审核")
    @TableField(exist = false)
    private Integer isApproved;


    @ApiModelProperty(value = "图片")
    @TableField(value = "annexs",exist = false)
    private  List<String> annexs;
}
